package com.yzd.learnjava.io;

import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

import com.yzd.learnjava.util.Print;

public class TestEOF {
	public static void main(String[] args) throws IOException {
		DataInputStream inputStream = new DataInputStream(new BufferedInputStream(
				new FileInputStream("D:\\src\\git\\java\\javalearn\\src\\com\\yzd\\learnjava\\util\\PPrint.java")));
		while(inputStream.available() != 0) {
			Print.print((char)inputStream.readByte());
		}
	}
}
